<script src="jquery.js"></script>
<script>
    $(
        function() {
            $(window).resize(
                function() {
                    console.log($(this).width());
                }
            );
        }
    );
</script>